package test2_annonation.impl;

import org.springframework.stereotype.Repository;
import test2_annonation.BookDao2;

import javax.annotation.PostConstruct;
import javax.annotation.PreDestroy;


@Repository("BookDao22")
public class BookDao2Impl2 implements BookDao2 {

    public void search() {
        System.out.println("book dao 2---2 search!");
    }

    @PostConstruct
    public void init(){
        System.out.println("book dao 2---2 init");
    }

    @PreDestroy
    public void destory(){
        System.out.println("book dao 2---2 desotry");
    }
}
